
import AbsMenu from '../absmenu.js'

class LayMenu extends AbsMenu.AbsMenu {
    constructor(map, item) {
        super(map, item);
    }

    act2Click() {
        console.log("lay-----+" + this.menuSubItem);


        switch (this.menuSubItem) {
            case 'manage':
                this.manageLayer();
                break;
            default:
                this.map.m_pEditINTF.layout(this.menuSubItem);
                break;
        }
    }

    manageLayer() {
        let t = window.refLayerManager.value;
        if (t && !t.visible) {
            t.visible = true;
            t.initData();
        }
    }
}

export default { LayMenu }

